package com.vm321.chapter2;

import java.util.Scanner;

/**
 * 025
 * Created by Megatron on 2017/1/17.
 */
public class Multiply {
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);//创建扫描器
        System.out.println("请输入一个整数");
        long number = scan.nextLong();//获取输入的整数
        System.out.println("你输入的数字是："+number);
        System.out.println("该数字乘以2的运算结果为："+(number<<1));
        System.out.println("该数字乘以4的运算结果为："+(number<<2));
        System.out.println("该数字乘以8的运算结果为："+(number<<3));
        System.out.println("该数字乘以16的运算结果为："+(number<<4));
        System.out.println("测试右移位运算："+(9>>3));
    }
}
